

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>control &mdash; controls  documentation</title>
  

  
  
  
  

  
  <script type="text/javascript" src="_static/js/modernizr.min.js"></script>
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
        <script type="text/javascript" src="_static/jquery.js"></script>
        <script type="text/javascript" src="_static/underscore.js"></script>
        <script type="text/javascript" src="_static/doctools.js"></script>
        <script type="text/javascript" src="_static/language_data.js"></script>
    
    <script type="text/javascript" src="_static/js/theme.js"></script>

    

  
  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="ui" href="ui.html" />
    <link rel="prev" title="Welcome to controls’s documentation!" href="index.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="index.html" class="icon icon-home"> controls
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">control</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#module-control">control api</a></li>
<li class="toctree-l2"><a class="reference internal" href="#control-example">control example</a></li>
<li class="toctree-l2"><a class="reference internal" href="#fk-rig-example">fk rig example</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="ui.html">ui</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="index.html">controls</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="index.html">Docs</a> &raquo;</li>
        
      <li>control</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/control.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="control">
<h1>control<a class="headerlink" href="#control" title="Permalink to this headline">¶</a></h1>
<div class="section" id="module-control">
<span id="control-api"></span><h2>control api<a class="headerlink" href="#module-control" title="Permalink to this headline">¶</a></h2>
<p>这是一个控制器类。用来上传、创建、修改控制器。</p>
<dl class="class">
<dt id="control.Control">
<em class="property">class </em><code class="descclassname">control.</code><code class="descname">Control</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>kwargs</strong> – 修改控制器的参数</li>
<li><strong>kwargs</strong> – -n -name string 名字</li>
<li><strong>kwargs</strong> – -t -transform string/node/Control 控制器</li>
<li><strong>kwargs</strong> – -p -parent string/node 父对象</li>
<li><strong>kwargs</strong> – -s -shape data/name 形态</li>
<li><strong>kwargs</strong> – -c -color int 颜色</li>
<li><strong>kwargs</strong> – -r -radius float 半径</li>
<li><strong>kwargs</strong> – -ro -rotate [float, float,float] 旋转</li>
<li><strong>kwargs</strong> – -o -offset [float, float,float] 偏移</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="classmethod">
<dt id="control.Control.delete_shape">
<em class="property">classmethod </em><code class="descname">delete_shape</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.delete_shape" title="Permalink to this definition">¶</a></dt>
<dd><p>删除形态</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.get_color">
<code class="descname">get_color</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.get_color" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">color int 控制器颜色</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="control.Control.get_radius">
<code class="descname">get_radius</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.get_radius" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">radius float 控制器半径</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="control.Control.get_shape">
<code class="descname">get_shape</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.get_shape" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">data 控制器数据</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="control.Control.get_transform">
<code class="descname">get_transform</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.get_transform" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">transform node控制器节点</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="control.Control.mirror">
<code class="descname">mirror</code><span class="sig-paren">(</span><em>other</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.mirror" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>other</strong> – Control 镜像目标</td>
</tr>
</tbody>
</table>
<p>镜像控制器。</p>
</dd></dl>

<dl class="classmethod">
<dt id="control.Control.mirror_selected">
<em class="property">classmethod </em><code class="descname">mirror_selected</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.mirror_selected" title="Permalink to this definition">¶</a></dt>
<dd><p>镜像两个选择的控制器</p>
</dd></dl>

<dl class="classmethod">
<dt id="control.Control.selected">
<em class="property">classmethod </em><code class="descname">selected</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.selected" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">[Control(), ]</td>
</tr>
</tbody>
</table>
<p>选择的控制器</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set">
<code class="descname">set</code><span class="sig-paren">(</span><em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>kwargs</strong> – 修改控制器的参数</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_color">
<code class="descname">set_color</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_color" title="Permalink to this definition">¶</a></dt>
<dd><p>设置颜色</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_name">
<code class="descname">set_name</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_name" title="Permalink to this definition">¶</a></dt>
<dd><p>设置名字</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_offset">
<code class="descname">set_offset</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_offset" title="Permalink to this definition">¶</a></dt>
<dd><p>设置偏移</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_parent">
<code class="descname">set_parent</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_parent" title="Permalink to this definition">¶</a></dt>
<dd><p>设置父对像</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_radius">
<code class="descname">set_radius</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_radius" title="Permalink to this definition">¶</a></dt>
<dd><p>设置半径</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_rotate">
<code class="descname">set_rotate</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_rotate" title="Permalink to this definition">¶</a></dt>
<dd><p>设置旋转</p>
</dd></dl>

<dl class="classmethod">
<dt id="control.Control.set_selected">
<em class="property">classmethod </em><code class="descname">set_selected</code><span class="sig-paren">(</span><em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_selected" title="Permalink to this definition">¶</a></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>kwargs</strong> – 修改控制器的参数</td>
</tr>
</tbody>
</table>
<p>批量修改选择的控制器</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_shape">
<code class="descname">set_shape</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_shape" title="Permalink to this definition">¶</a></dt>
<dd><p>设置形态</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.set_transform">
<code class="descname">set_transform</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.set_transform" title="Permalink to this definition">¶</a></dt>
<dd><p>设置控制器</p>
</dd></dl>

<dl class="method">
<dt id="control.Control.upload">
<code class="descname">upload</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#control.Control.upload" title="Permalink to this definition">¶</a></dt>
<dd><p>上传控制器</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="control-example">
<h2>control example<a class="headerlink" href="#control-example" title="Permalink to this headline">¶</a></h2>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># coding=utf-8</span>

<span class="kn">import</span> <span class="nn">pymel.core</span> <span class="k">as</span> <span class="nn">pm</span>
<span class="kn">from</span> <span class="nn">controls.control</span> <span class="k">import</span> <span class="n">Control</span>

<span class="c1"># 偏向面向对象思路的使用方式</span>
<span class="n">circle</span> <span class="o">=</span> <span class="n">pm</span><span class="o">.</span><span class="n">circle</span><span class="p">(</span><span class="n">ch</span><span class="o">=</span><span class="mi">1</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">control</span> <span class="o">=</span> <span class="n">Control</span><span class="p">(</span><span class="n">circle</span><span class="p">)</span>
<span class="nb">print</span> <span class="n">control</span>
<span class="n">group</span> <span class="o">=</span> <span class="n">pm</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="n">em</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_parent</span><span class="p">(</span><span class="n">group</span><span class="p">)</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_name</span><span class="p">(</span><span class="s2">&quot;circle&quot;</span><span class="p">)</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_color</span><span class="p">(</span><span class="mi">13</span><span class="p">)</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_radius</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>

<span class="c1"># 偏向mel面向过程的使用方式</span>
<span class="n">group2</span> <span class="o">=</span> <span class="n">pm</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="n">em</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="n">Control</span><span class="p">(</span><span class="n">control</span><span class="p">,</span> <span class="n">p</span><span class="o">=</span><span class="n">group2</span><span class="p">,</span> <span class="n">r</span><span class="o">=</span><span class="mf">1.5</span><span class="p">,</span> <span class="n">c</span><span class="o">=</span><span class="mi">6</span><span class="p">)</span>

<span class="c1"># 控制器上传使用</span>
<span class="n">circle2</span> <span class="o">=</span> <span class="n">pm</span><span class="o">.</span><span class="n">circle</span><span class="p">(</span><span class="n">ch</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">d</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">s</span><span class="o">=</span><span class="mi">6</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">control2</span> <span class="o">=</span> <span class="n">Control</span><span class="p">(</span><span class="n">circle2</span><span class="p">)</span>
<span class="n">control2</span><span class="o">.</span><span class="n">set_name</span><span class="p">(</span><span class="s2">&quot;SixEdge&quot;</span><span class="p">)</span>
<span class="n">control2</span><span class="o">.</span><span class="n">upload</span><span class="p">()</span>
<span class="n">control</span><span class="o">.</span><span class="n">upload</span><span class="p">()</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_shape</span><span class="p">(</span><span class="s2">&quot;SixEdge&quot;</span><span class="p">)</span>
<span class="n">control2</span><span class="o">.</span><span class="n">set_shape</span><span class="p">(</span><span class="s2">&quot;SixEdge&quot;</span><span class="p">)</span>
<span class="n">control</span><span class="o">.</span><span class="n">set_shape</span><span class="p">(</span><span class="s2">&quot;circle&quot;</span><span class="p">)</span>
<span class="n">control2</span><span class="o">.</span><span class="n">set_shape</span><span class="p">(</span><span class="s2">&quot;circle&quot;</span><span class="p">)</span>

<span class="c1"># 在绑定代码中使用Control创建控制器</span>
<span class="n">con</span> <span class="o">=</span> <span class="n">Control</span><span class="p">(</span><span class="n">n</span><span class="o">=</span><span class="s2">&quot;TestCon&quot;</span><span class="p">,</span> <span class="n">s</span><span class="o">=</span><span class="s2">&quot;SixEdge&quot;</span><span class="p">,</span> <span class="n">r</span><span class="o">=</span><span class="mf">1.5</span><span class="p">,</span> <span class="n">p</span><span class="o">=</span><span class="n">group</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="fk-rig-example">
<h2>fk rig example<a class="headerlink" href="#fk-rig-example" title="Permalink to this headline">¶</a></h2>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">PySide2.QtCore</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">PySide2.QtGui</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">PySide2.QtWidgets</span> <span class="k">import</span> <span class="o">*</span>
<span class="kn">from</span> <span class="nn">controls.control</span> <span class="k">import</span> <span class="n">Control</span>
<span class="kn">from</span> <span class="nn">maya</span> <span class="k">import</span> <span class="n">cmds</span>


<span class="k">def</span> <span class="nf">fk_rig</span><span class="p">(</span><span class="n">prefix</span><span class="o">=</span><span class="s2">&quot;aaa&quot;</span><span class="p">):</span>
    <span class="n">joints</span> <span class="o">=</span> <span class="n">cmds</span><span class="o">.</span><span class="n">ls</span><span class="p">(</span><span class="n">sl</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
    <span class="n">fk</span> <span class="o">=</span> <span class="n">cmds</span><span class="o">.</span><span class="n">group</span><span class="p">(</span><span class="n">n</span><span class="o">=</span><span class="s2">&quot;</span><span class="si">{prefix}</span><span class="s2">Group&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">),</span> <span class="n">em</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
    <span class="n">radius</span> <span class="o">=</span> <span class="n">Control</span><span class="o">.</span><span class="n">get_soft_radius</span><span class="p">()</span>
    <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">joint</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">joints</span><span class="p">):</span>
        <span class="n">group</span> <span class="o">=</span> <span class="n">cmds</span><span class="o">.</span><span class="n">createNode</span><span class="p">(</span><span class="s2">&quot;transform&quot;</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="s2">&quot;</span><span class="si">{prefix}{i:0&gt;2}</span><span class="s2">Group&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">i</span><span class="o">=</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">),</span> <span class="n">p</span><span class="o">=</span><span class="n">joint</span><span class="p">)</span>
        <span class="n">cmds</span><span class="o">.</span><span class="n">parent</span><span class="p">(</span><span class="n">group</span><span class="p">,</span> <span class="n">fk</span><span class="p">)</span>
        <span class="n">fk</span> <span class="o">=</span> <span class="n">Control</span><span class="p">(</span><span class="n">p</span><span class="o">=</span><span class="n">group</span><span class="p">,</span> <span class="n">s</span><span class="o">=</span><span class="s2">&quot;LiuJiaoTi&quot;</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="s2">&quot;</span><span class="si">{prefix}{i:0&gt;2}</span><span class="s2">Control&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">i</span><span class="o">=</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">),</span> <span class="n">ro</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="o">-</span><span class="mi">90</span><span class="p">,</span> <span class="mi">90</span><span class="p">],</span>
                     <span class="n">r</span><span class="o">=</span><span class="n">radius</span><span class="p">,</span> <span class="n">c</span><span class="o">=</span><span class="mi">17</span><span class="p">)</span>
        <span class="n">ik</span> <span class="o">=</span> <span class="n">Control</span><span class="p">(</span><span class="n">p</span><span class="o">=</span><span class="n">fk</span><span class="p">,</span> <span class="n">s</span><span class="o">=</span><span class="s2">&quot;SanJiaoTi&quot;</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="s2">&quot;</span><span class="si">{prefix}{i:0&gt;2}</span><span class="s2">SdControl&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">i</span><span class="o">=</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">),</span> <span class="n">ro</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">90</span><span class="p">],</span>
                     <span class="n">r</span><span class="o">=</span><span class="n">radius</span><span class="o">*</span><span class="mf">0.5</span><span class="p">,</span> <span class="n">c</span><span class="o">=</span><span class="mi">13</span><span class="p">,</span> <span class="n">o</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="n">radius</span><span class="o">*</span><span class="mf">1.5</span><span class="p">,</span> <span class="mi">0</span><span class="p">])</span>
        <span class="n">cmds</span><span class="o">.</span><span class="n">setAttr</span><span class="p">(</span><span class="n">fk</span><span class="o">+</span><span class="s2">&quot;.t&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
        <span class="n">cmds</span><span class="o">.</span><span class="n">setAttr</span><span class="p">(</span><span class="n">fk</span><span class="o">+</span><span class="s2">&quot;.r&quot;</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span>
        <span class="n">cmds</span><span class="o">.</span><span class="n">createNode</span><span class="p">(</span><span class="s2">&quot;joint&quot;</span><span class="p">,</span> <span class="n">p</span><span class="o">=</span><span class="n">ik</span><span class="o">.</span><span class="n">get_transform</span><span class="p">()</span><span class="o">.</span><span class="n">name</span><span class="p">(),</span> <span class="n">n</span><span class="o">=</span><span class="s2">&quot;</span><span class="si">{prefix}{i:0&gt;2}</span><span class="s2">Joint&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">i</span><span class="o">=</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">))</span>

<span class="n">fk_rig</span><span class="p">(</span><span class="n">prefix</span><span class="o">=</span><span class="s2">&quot;Tail&quot;</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="ui.html" class="btn btn-neutral float-right" title="ui" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="index.html" class="btn btn-neutral float-left" title="Welcome to controls’s documentation!" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2019, lush

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>